package com.xiaoshuidi.cloud.module.rooms.service.impl;

import com.xiaoshuidi.cloud.module.rooms.controller.admin.area.vo.RoomProvinceCityVO;
import com.xiaoshuidi.cloud.module.rooms.repository.RoomProvinceCityRepository;
import com.xiaoshuidi.cloud.module.rooms.service.RoomProvinceCityService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sampson
 * create 2023/12/25
 * email  sampson.wang@ixiaoshuidi.com
 */
@Service
@RequiredArgsConstructor
public class RoomProvinceCityServiceImpl implements RoomProvinceCityService {

    private final RoomProvinceCityRepository roomProvinceCityRepository;
    @Override
    public List<RoomProvinceCityVO> getProvince() {
        List<RoomProvinceCityVO> list = roomProvinceCityRepository.getProvince();
        return list;
    }

    @Override
    public List<RoomProvinceCityVO> getCity(String provinceName) {
        List<RoomProvinceCityVO> list = roomProvinceCityRepository.getCity(provinceName);
        return list;
    }
}
